package com.lemeng.pojo;


import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Table(name = "tb_category_report")
public class CategoryReport implements Serializable {

	private static final long serialVersionUID = 3040803292194378007L;

	@Transient
	private String categoryId1Name;


	/**
	 * 1级分类
	 */
	@Id
	@Column(name = "category_id1")
	private Integer categoryId1;

	/**
	 * 2级分类
	 */
	@Id
	@Column(name = "category_id2")
	private Integer categoryId2;

	/**
	 * 3级分类
	 */
	@Id
	@Column(name = "category_id3")
	private Integer categoryId3;

	/**
	 * 统计日期
	 */
	@Id
	@Column(name = "count_date")
	private Date countDate;

	/**
	 * 销售数量
	 */
	@Column(name = "num")
	private Integer num;

	/**
	 * 销售额
	 */
	@Column(name = "money")
	private Integer money;


	public CategoryReport() {
	}

	public CategoryReport(Integer categoryId1, Integer categoryId2, Integer categoryId3, Date countDate, Integer num, Integer money) {	
		this.categoryId1 = categoryId1;
		this.categoryId2 = categoryId2;
		this.categoryId3 = categoryId3;
		this.countDate = countDate;
		this.num = num;
		this.money = money;
	}


	public Integer getCategoryId1() {
		return categoryId1;
	}

	public void setCategoryId1(Integer categoryId1) {
		this.categoryId1 = categoryId1;
	}

	public Integer getCategoryId2() {
		return categoryId2;
	}

	public void setCategoryId2(Integer categoryId2) {
		this.categoryId2 = categoryId2;
	}

	public Integer getCategoryId3() {
		return categoryId3;
	}

	public void setCategoryId3(Integer categoryId3) {
		this.categoryId3 = categoryId3;
	}

	public Date getCountDate() {
		return countDate;
	}

	public void setCountDate(Date countDate) {
		this.countDate = countDate;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Integer getMoney() {
		return money;
	}

	public void setMoney(Integer money) {
		this.money = money;
	}


	public String getCategoryId1Name() {
		return categoryId1Name;
	}

	public void setCategoryId1Name(String categoryId1Name) {
		this.categoryId1Name = categoryId1Name;
	}

	@Override
	public String toString() {
		return "CategoryReport{" +
				"categoryId1='" + categoryId1 + '\'' +
				"categoryId2='" + categoryId2 + '\'' +
				"categoryId3='" + categoryId3 + '\'' +
				"countDate='" + countDate + '\'' +
				"num='" + num + '\'' +
				"money='" + money + '\'' +
				'}';
	}

}
